package cn.com.surker.weight.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 过磅审核消息推送表
 * </p>
 *
 * @author admin
 * @since 2023-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WeightExamineMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 消息code
     */
    private String orderId;

    /**
     * 回调code
     */
    private String code;

    /**
     * 用户ID
     */
    private Long uid;

    /**
     * 接收者
     */
    private String toUser;

    /**
     * 接收账号
     */
    private String toAccount;

    /**
     * 公司ID
     */
    private Long stationId;

    /**
     * 公司名称
     */
    private String station;

    /**
     * 驾驶员
     */
    private String driver;

    /**
     * 电话
     */
    private String phone;

    /**
     * 车牌号
     */
    private String carNo;

    /**
     * 供应商
     */
    private String supplier;

    /**
     * 材料
     */
    private String material;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 跳转地址
     */
    private String url;

    /**
     * 审批类型(0:主办,1:会签)
     */
    private Integer examineType;

    /**
     * 是否回调(0:未回调1:已回调)
     */
    private Integer isCallback;

    /**
     * 状态(0：启用，1：禁用)
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    public WeightExamineMessage(){}

    public WeightExamineMessage(String orderId, String code, Long uid, String toUser, String toAccount, Long stationId, String station, String driver, String phone, String carNo, String supplier, String material, String content, String url, Integer examineType, Integer isCallback, Integer status, Date createTime) {
        this.orderId = orderId;
        this.code = code;
        this.uid = uid;
        this.toUser = toUser;
        this.toAccount = toAccount;
        this.stationId = stationId;
        this.station = station;
        this.driver = driver;
        this.phone = phone;
        this.carNo = carNo;
        this.supplier = supplier;
        this.material = material;
        this.content = content;
        this.url = url;
        this.examineType = examineType;
        this.isCallback = isCallback;
        this.status = status;
        this.createTime = createTime;
    }
}
